package cn.edu.lingnan.mapper;

import cn.edu.lingnan.domain.dto.CreateAccount;
import cn.edu.lingnan.domain.pojo.Logs;
import cn.edu.lingnan.domain.pojo.Receipts;
import cn.edu.lingnan.domain.vo.AccountVo;
import cn.edu.lingnan.domain.vo.ManageUserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TellerMapper {
    List<AccountVo> queryAllAccount();

    void updateAccountStatus(Integer accountId, String status);

    void openAccount(CreateAccount createAccount);

    void deposit(Integer accountId, Double balance);

    void insertLogs(Logs logs);

    void insertReceipts(Receipts receipts);

    void withdraw(Integer accountId, Double balance);

    List<ManageUserVo> queryUserInfo();
}
